<template>
  <div>
    <h2>学校的信息</h2>
    <h3>名称:{{ showSchoolName }}</h3>
    <h3>地址:{{ showSchoolAddress }}</h3>
    <h3>年龄:{{ showSchoolAge }}</h3>
    <input type="submit" value="提交" @click="showSchoolClick" />
  </div>
</template>

<script>
export default {
  name: "School",
  data() {
    return {
      showSchoolName: "中央戏剧学院",
      showSchoolAddress: "北京昌平",
      showSchoolAge: 70,
    };
  },
  methods: {
    showSchoolClick() {
      alert(`欢迎来到我的世界`);
    },
  },
};
</script>

<style scoped>
</style>